From your Dynatrace console navigate to services
you will have a few new services now specifically the Lamda functions we deployed. Looks from the image below that we have 1 fully instrumented lambda and 1 lambda that althogh recognized by the DT-OneAgent as an end point its not yet instrumented. WAIT you say you dont have any instrumented Lamdas. Well I wanted to see if you are paying attention!.. Lets finish 1 final step to instrument the Lambda fully with the power or the DT-OneAgent observability.
Navigate on the left side menu to Settings
then Start Installation
and select AWS Lambda
if we were doing this as a manual install this would be the steps to accomplish what we have automated throught the LambdaProvisionScript.sh
What we will need from this settings is the DT_CONNECTION_AUTH_TOKEN
value you see here which starts with dt
. In order to expose that for your Dynatrace tenant click on the eye icon
. Copy this to your clipboard or a notepad to use in the subsequent step.
Next we will move back to the AWS console to complete the instrumentation.
Lambda
in the AWS consolehamburger
menuserverlessDBActions
Configuration
followed by Environment Variables
DT_CONNECTION_AUTH_TOKEN
and in the box next to it cut and paste over the REPLACE-ME-PLEASE
check your DT tenant again under ``services` and see that your lambda is now recognized as Lambda function Icon as I showed before but also as a bonus check your AWS dashboard from the left menu and notice that now this lambda is and active link
Now that you have 1 of your Lambdas instrumented with the power of the Dynatrace OneAgent lets continue to dive into the DT Orders application and look to see how this Modernization has impacted our environment.
frontend
with Staging-frontend
underneath.view service flow
on the right of the this windowWhat you will see is the flow of requests flowing from the frontend
service. Explore this page and look how the different services support this frontend
service.
Take a look at the service flow once again to see some interresting information. Remember that of the 2 Lambda functions we deployed we only added the DT auth token to 1 of them, the serverlessDBActions
is fully instrumented and in this service flow we can see the following information from the catalog service flow:
modernization
treatement as the catalog is still calling its imbedded database
Now we will look at this information from a different angle and dive into the requests that are transacting.
In the service flow
page click over the box for the servervlessDBActions
and select the filter
icon. This will isolate the calls that start in the frontend
service and end with our Lambda function.
Now that we have filtered the calls click over the frontend
box select the disctributed tracing icon that looks like a ladder, this will take us to the distributed tracing
section of Dynatrace.
Now click on the frist instance on the resulting page name /catalog/1html
Your resulting page will be the call stack from the front end to the our Lambda function. here you can expand each layer of the call to show metadata and attributes associated with each step of the call stack.
WHATS THAT LAST CALL UNDER OUR LAMBDA??
Remember that in the beging when we explained how the architecture was going to be laid out. We we explained that unlike the existing catalog service our Lambda function calls a RDS database running a MySql instance. Well here is that call. Icon you are seeing is representative of the open source technology called Open Telemetry or OTEL
for short.
As we dive into the metadata and attributes of this request we can see:
With the OTEL instrumentation for the Lambda function we are now able to analyze the details of the calls to the RDS database
Dive into OpenTelemetry with AWS Lambda and see how it transforms the game. It's like having a superpower for spotting exactly how your serverless apps are doing, making it a breeze to tune them up for speed and reliability. You get to fix issues faster, save on resources, and keep your users smiling, all with one clever tool.
And there is much more to see that the Dynatrace platform can offer that we didnt have time to talk about. We hope that in future workshops we will be able to continue to bring you more content as we at Dynatrace strive to define what it means to have "Cloud Done Right"